#pragma once

#include "HashTable.h"

template <class K,class V>
class Hashmap
{
	struct mapKofT
	{
		const K& operator()(const pair<const K, V>& kv)
		{
			return kv.first;
		}
	};
	typedef my_std::Hash<K, pair<const K, V>, mapKofT> Hash;
	typedef typename Hash::iterator iterator;
	typedef typename Hash::const_iterator const_iterator;

private:
	Hash _ha;
public:

	iterator begin()
	{
		return _ha.begin();
	}

	iterator end()
	{
		return _ha.end();
	}

	const_iterator begin()const
	{
		return _ha.begin();
	}

	const_iterator end()const
	{
		return _ha.end();
	}

	pair<iterator,bool> insert(const pair<const K,V>& kv)
	{
		return _ha.insert(kv);
	}

	pair<iterator,bool> earse(const K& key)
	{
		return _ha.earse(key);
	}


};
